package com.cmyshare.design.strategyAndFactory;

/**
 * @version 1.0
 * @Author cmy
 * @Date 2025/10/13 14:19
 * @desc 微信支付策略
 */
// 微信支付策略
public class WechatPayStrategy implements PaymentStrategy {
    @Override
    public void pay(double amount) {
        System.out.println("使用微信支付: " + amount + "元");
        // 实际支付逻辑：调用微信支付API等
    }

    @Override
    public String getPaymentType() {
        return "wechat";
    }
}
